package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class UserDefinedRepresentation implements ReferenceTypeSpecification {

    private int beginIndex;
    private int endIndex;
    private PredefinedType predefinedType;

    public UserDefinedRepresentation(int beginIndex, PredefinedType predefinedType) {
        this.beginIndex = beginIndex;
        this.endIndex = predefinedType.getEndIndex();
        this.predefinedType = predefinedType;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public PredefinedType getPredefinedType() {
        return predefinedType;
    }

}
